export const userInfo1:Array<any> = [
  {
    key: 'id',
    title: '用户ID'
  },
  {
    key: 'nickname',
    title: '用户昵称'
  },
  {
    key: 'phone',
    title: '用户电话'
  },
  {
    key: 'rank_name',
    title: '用户等级'
  },
  {
    key: 'level_name',
    title: '用户消费等级'
  },
  {
    key: 'inviter_code',
    title: '用户邀请码'
  },
];

export const userInfo2:Object[] = [
  {
    key: 'id',
    title: '团长ID'
  },
  {
    key: 'nickname',
    title: '团长昵称'
  },
  {
    key: 'phone',
    title: '团长电话'
  },
];


export const statisticsInfo:Object[] = [
  {
    key: 'balance1',
    title: '余额'
  },
  {
    key: 'balance2',
    title: '礼品券'
  },
  {
    key: 'balance3',
    title: '积分余额'
  },
  {
    key: 'balance4',
    title: '积分券'
  },
  {
    key: 'balance5',
    title: '冻结余额'
  },
  {
    key: 'balance6',
    title: '积分额度'
  },
];


export const userState:Object[] = [
  {
    key: 'login_at',
    title: '登陆时间'
  },
  {
    key: 'create_at',
    title: '注册时间'
  },
  {
    key: 'status',
    title: '用户状态',
  },
];



export const rulesUser = {
  buy_shop_switch: [
    {
      required: true,
      message: '请选择提货方式',
      trigger: 'change'
    },
  ],
  nickname: [
    {
      required: true,
      trigger: 'blur',
      message: '请输入用户昵称',
    },
  ],
  rank_id: [
    {
      required: true,
      message: '请选择用户级别',
      trigger: 'change',
    },
  ],
  level_id: [
    {
      required: true,
      message: '请选择用户消费等级',
      trigger: 'change',
    },
  ],
};


export const rulesRecharge = {
  type: [
    {
      required: true,
      message: '请选择充值类型',
      trigger: 'change',
    },
  ],
  amount: [
    {
      required: true,
      trigger: ['blur', 'change'],
      message: '请输入用户昵称',
    },
  ],
};


export const rulesCoupon = {
  count: [
    {
      required: true,
      trigger: ['blur', 'change'],
      message: '请输入赠送数量',
    },
  ],
  coupon_id: [
    {
      required: true,
      message: '请选择优惠卷类型',
      trigger: 'change',
    },
  ],
}
